package top.llove.service.impl;

import cn.hutool.captcha.CaptchaUtil;
import cn.hutool.captcha.ShearCaptcha;
import org.springframework.stereotype.Service;
import top.llove.service.PublicService;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;

/**
 * 公共接口Service实现类
 *
 * @author: 幸会
 * @date: 2021/6/11 18:00
 * @email: 1846724873@qq.com
 * @description: 公共接口Service实现类
 * version: 1.0
 */
@Service
public class PublicServiceImpl implements PublicService {
    @Resource
    private HttpServletResponse resp;
    @Override
    public OutputStream verify() throws IOException {
        ShearCaptcha captcha = CaptchaUtil.createShearCaptcha(200, 100, 5, 3);
        BufferedImage image = captcha.getImage();
        return null;
    }
}
